<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<h2><ASP:Literal runat="server"  id="ForumDescription" /></h2>
<asp:Literal Runat="server" id="ForumDetailDescription" />
<p />
<table cellPadding="2" cellspacing="0" width="100%" border="0">
  <tr>
    <td vAlign="top">
	
<asp:Repeater id="PostRepeater" runat="server">
    
    <ItemTemplate>    
		<table width="100%" class="tableBorder" cellpadding="4" cellspacing="1">
			<tr>
				<td class="fh" width="*">
					<CSD:ModerationMenu Post='<%# Container.DataItem %>' UsePathToRedirect = "True" runat="server" />
				</td>
			</tr>
			<tr>
		    <td>
		    
				  <table class="tableBorder" cellPadding="4" width="100%">
					  <tr>
						  <td class="column" colspan="2">
							  <asp:HyperLink Runat="server" id="ThreadLink" Target=_blank><font color="white"><b><%# DataBinder.Eval (Container.DataItem, "Subject" ) %></b></font></asp:HyperLink>
						  </td>
					  </tr>
		        <tr>
		            <td class="fh" rowspan="2" valign="top" align="center" nowrap="true" width="180">
		                <CS:UserOnlineStatus runat="server" User='<%# (User) DataBinder.Eval (Container.DataItem, "User" ) %>' />
                	  <b><a href='<%# Globals.GetSiteUrls().UserProfile( ((User) DataBinder.Eval (Container.DataItem, "User" )).Username ) %>' runat="server">
                            <%# DataBinder.Eval (Container.DataItem, "DisplayName" ) %>
			                </a></b>
		                <br>
		                <span class="txt2">
		                <CS:UserAttribute FormatString="<br>{0}" Attribute="Joined" runat="server" User='<%# (User) DataBinder.Eval (Container.DataItem, "User" ) %>' />
		                <CS:UserAttribute FormatString="<br>{0}" Attribute="Location" runat="server" User='<%# (User) DataBinder.Eval (Container.DataItem, "User" ) %>' />
		                <CS:UserAttribute FormatString="<br>{0}" Attribute="Posts" runat="server" User='<%# (User) DataBinder.Eval (Container.DataItem, "User" ) %>' />
		                </span>
		            </td>
		            <td class="f" width="100%">
		                <table width="100%" cellpadding="0" cellspacing="0">
		                    <tr>
		                        <td align="left" valign="top">
		                            <span class="txt4">
		                                Posted <%# Formatter.FormatDate ( ((Post) Container.DataItem).PostDate, true ) %>
		                                <CSD:PostAttachment runat="server" Post='<%# Container.DataItem %>' />
		                            </span>
		                        </td>
		                    </tr>
		                </table>
		            </td>
		        </tr>
		        <tr>
		            <td height="100" valign="top">
		                <CSD:PostView Post='<%# (Post) Container.DataItem %>' runat="server" />
		            </td>
		        </tr>
				  </table>
				  
	      </td>
			</tr>           
    </table>
    </ItemTemplate>
    
    <SeparatorTemplate>
      <br />
    </SeparatorTemplate>
    
</asp:Repeater>
	  </td>
  </tr>
</table>
